<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysVehicleType02Bean.id}"/>
		<f:event type="preRenderView" listener="#{sysVehicleType02Bean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Vehicle Type 02"/>

	<ui:define name="header">
		Sys Vehicle Type 02
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysVehicleType02Bean.id}">
				Edit existing Sys Vehicle Type 02
			</c:when>
			<c:otherwise>
				Create a new Sys Vehicle Type 02
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysVehicleType02BeanSysVehicleType02VehicleType02No" value="Vehicle Type 02No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleType02BeanSysVehicleType02VehicleType02No" required="true" value="#{sysVehicleType02Bean.sysVehicleType02.vehicleType02No}"/>
					<h:message for="sysVehicleType02BeanSysVehicleType02VehicleType02No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysVehicleType02BeanSysVehicleType02VehicleType02Descr" value="Vehicle Type 02Descr:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleType02BeanSysVehicleType02VehicleType02Descr" maxLength="50" value="#{sysVehicleType02Bean.sysVehicleType02.vehicleType02Descr}"/>
					<h:message for="sysVehicleType02BeanSysVehicleType02VehicleType02Descr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleType02BeanSysVehicleType02VehicleType01No" value="Vehicle Type 01No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleType02BeanSysVehicleType02VehicleType01No" required="true" value="#{sysVehicleType02Bean.sysVehicleType02.vehicleType01No}"/>
					<h:message for="sysVehicleType02BeanSysVehicleType02VehicleType01No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysVehicleType02BeanSysVehicleType02SysVehicleTypes" value="Sys Vehicle Types:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysVehicleType02Bean.sysVehicleType02.sysVehicleTypes}"/>
					<h:dataTable id="sysVehicleType02BeanSysVehicleType02SysVehicleTypes" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Vehicle Type 01"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleType/view">
								<f:param name="id" value="#{_item.vehicleTypeNo}"/>
								<h:outputText id="forgeviewdisplayitemSysVehicleType01" value="#{forgeview:display(_item.sysVehicleType01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysVehicleType01Bean.converter}" id="sysVehicleTypeBeanAddSysVehicleType01" value="#{sysVehicleTypeBean.add.sysVehicleType01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleType01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sysVehicleTypeBeanAddSysVehicleType01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Type Descr"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleType/view">
								<f:param name="id" value="#{_item.vehicleTypeNo}"/>
								<h:outputText id="itemVehicleTypeDescr" value="#{_item.vehicleTypeDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeBeanAddVehicleTypeDescr" maxLength="50" value="#{sysVehicleTypeBean.add.vehicleTypeDescr}"/>
								<h:message for="sysVehicleTypeBeanAddVehicleTypeDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Type 03No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleType/view">
								<f:param name="id" value="#{_item.vehicleTypeNo}"/>
								<h:outputText id="itemVehicleType03No" value="#{_item.vehicleType03No}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeBeanAddVehicleType03No" value="#{sysVehicleTypeBean.add.vehicleType03No}"/>
								<h:message for="sysVehicleTypeBeanAddVehicleType03No" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Type Status No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleType/view">
								<f:param name="id" value="#{_item.vehicleTypeNo}"/>
								<h:outputText id="itemVehicleTypeStatusNo" value="#{_item.vehicleTypeStatusNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeBeanAddVehicleTypeStatusNo" value="#{sysVehicleTypeBean.add.vehicleTypeStatusNo}"/>
								<h:message for="sysVehicleTypeBeanAddVehicleTypeStatusNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysVehicleTypeBean.added)}" id="sysVehicleType02BeanSysVehicleType02SysVehicleTypesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysVehicleTypeBean.add.sysVehicleType02}" value="#{sysVehicleType02Bean.sysVehicleType02}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysVehicleType02Bean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysVehicleType02Bean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysVehicleType02Bean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysVehicleType02Bean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>